home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000046_news@columbia.edu_Wed Apr 5 14:50:18 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA27655
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 5 Apr 1995 10:50:25 -0400
  3. Received: by apakabar.cc.columbia.edu id AA08069
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 5 Apr 1995 10:50:22 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: macros and wild cards (feature request)
  9. Date: 5 Apr 1995 14:50:18 GMT
  10. Organization: Columbia University
  11. Lines: 37
  12. Message-Id: <3luana$7s0@apakabar.cc.columbia.edu>
  13. References: <ROCKWELL.95Apr3161321@nova.umd.edu> <3lpsev$iqm@apakabar.cc.columbia.edu> <ROCKWELL.95Apr4132155@nova.umd.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <ROCKWELL.95Apr4132155@nova.umd.edu>,
  18. Raul Deluth Miller <rockwell@nova.umd.edu> wrote:
  19. : Frank da Cruz:
  20. :    I could give you a better answer if I knew which version of Kermit
  21. :    you were talking about.  MS-DOS Kermit?  C-Kermit?
  22. : I use C-Kermit, MS-DOS Kermit, and CMS-Kermit.  Kermit is my preferred
  23. : mechanism for getting files [in and] out of CMS.
  24. Terrific.  \\ffiles() works in C-Kermit and MS-DOS Kermit, but not in
  25. CMS Kermit.  There is probably some other way to do this in CMS Kermit
  26. with REXX or EXEC.
  27.  
  28. :    In C-Kermit, you use \ffiles(wildcard) and the fnextfile() to get
  29. :    each filename, and assign it to an array member.  See the example
  30. :    in ckcker.bwr (search for "ffiles").
  31. : Thanks, next time I have to tackle this kind of problem I'll look for
  32. : this feature.
  33. : [P.S. it would also be nice to have an analogue to \ffiles() which
  34. : would get the list of files from a remote kermit server, put or send
  35. : command.]
  36. Kind of like what the ftp client and server do.  Good idea.  We'll add
  37. it to the list for future releases.
  38.  
  39. For now, assuming the server is running on UNIX, you can simulate this with
  40. something like:
  41.  
  42.   remote host echo oofa.* > /tmp/x
  43.   get /tmp/x
  44.  
  45. and then use OPEN READ, READ, CLOSE READ to read the filenames into an
  46. array.  Replace the above two lines with the equivalents for VMS, CMS, etc.
  47.  
  48. - Frank